{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">

		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
      <div class="row">
  			<form method="get">
  				<div class="col-sm-12 col-md-4 col-lg-3">
  					<input type="text" class="form-control" name="keyword" value="{$Think.get.keyword}" placeholder="请输入UID/微信名/用户名/电话">
  				</div>

  								<div class="col-sm-12 col-md-4">
  					<button class="btn btn-primary" type="submit">搜索</button>
  				</div>
  			</form>
  		</div>
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th width="30"><input class="checkbox check-all" type="checkbox"></th>
            <th width="60">ID</th>
            <th>管理员</th>
            <th>充值用户UID/微信昵称</th>
            <th>充值金额</th>
            <th>充值前余额</th>
            <th>充值后余额</th>
            <th>充值时间</th>
            <th>充值描述</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td><input class="ids row-selected" type="checkbox" name="ids[]" value="{$item['id']}"></td>
            <td>{$item['id']}</td>
            <td>{$item['admin_id']|get_table_field="uid","username","member"}</td>
            <td>{$item['user_id']}/{$item['user_id']|get_table_field="id","nickname","WxUser"}</td>
            <td>{$item['sum']}</td>
            <td>{$item['before_balance']}</td>
            <td>{$item['after_balance']}</td>
            <td>{$item['create_time']}</td>
            <td>{$item['description']}</td>
          </tr>
          {/volist}
        </tbody>
      </table>
      {$list->render()}
		</div>
	</div>
</div>






{/block}

{block name="script"}
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
$(function(){
	$.fn.editable.defaults.mode = 'popup';
	$.fn.editableform.buttons = '<button type="submit" class="btn btn-success editable-submit btn-mini"><i class="fa fa-check-square-o fa-white"></i></button>' +
	'<button type="button" class="btn editable-cancel btn-mini"><i class="fa fa-times"></i></button>';
	$('.editable').editable();
	$('.rebate_code').editable({prepend: "not selected"});




})
</script>
{/block}
